package com.zhima.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhima.entity.InOutExample;
import com.zhima.enums.QuestionDifficulty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
public class QuestionPublishDetailVO {
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;
    private Long uploaderId;
    private String uploaderAvatarUri;

    private String prefix;
    private Integer number;
    private String title;
    private QuestionDifficulty difficulty;
    private List<SimpleLabelVO> labels;

    private String background;
    private String description;
    private String inputFormat;
    private String outputFormat;
    private List<InOutExample> inOutExamples;
    private String tips;

    private BigDecimal maxTimeLimit;
    private BigDecimal maxMemoryLimit;
    private Integer submitNum;
    private Integer acNum;
    private BigDecimal passingRate;

    private Boolean isSelf;
}
